local addonName = "FearImmunity"
local Plugin = TargetAlert:NewModule(addonName)

local FearImageType = { "", "Immu", "Prot" }
local AntiFearUnits = {
    "Undead"
}

local AntiFearSpells = {
	-- Buffs giving temporary immunity to fear effects
	["Buff"] = {
		"Fear Ward",			-- Dwarf priest racial trait
		"Will of the Forsaken",		-- Forsaken racial trait
		"Fearless",			-- Trinket
		"Berzerker Rage",		-- Warrior Fury talent
		"Recklessness",			-- Warrior Fury talent
		"Death Wish",			-- Warrior Fury talent
		"Bestial Wrath",		-- Hunter Beast Mastery talent (pet only)
		"Ice Block",			-- Mage Ice talent
		"Divine Protection",		-- Paladin Holy buff
		"Divine Shield",		-- Paladin Holy buff
		"Tremor Totem",			-- Shaman totem
		"Abolish Magic"			-- Majordomo (NPC) spell
	},

	-- Debuffs and curses giving temporary immunity to fear effects
	["Debuff"] = {
		"Curse of Recklessness"		-- Warlock curse
	}
}

function Plugin:OnEnable()
end

function Plugin:OnDisable()

end

function Plugin:OnTargetChanged()
    if UnitExists("target") and UnitCanAttack("player", "target") and not UnitIsDead("target") then
        -- NPC target ie undead
        if not UnitIsPlayer("target") then 
        end
    end
end


